// H5端开发和生产环境协议
let PROTOCOL_DEV = "wss://";
let PROTOCOL_PROD = "wss://";

// 条件编译，微信端和移动端使用wxs协议
// #ifdef MP-WEIXIN || APP-PLUS
PROTOCOL_DEV = 'wxs://';
PROTOCOL_PROD = 'wxs://';
// #endif

// 腾讯地图key
let QQ_MAP_KEY = '4PDBZ-4KQKU-AX6VO-GU7NB-INDZJ-YBFXC';

// 心知天气key
let XIN_ZHI_KEY = 'SBh45_yy21FU5ErV_';

// baseUrl拼接
let WEBVIEW_URL = 'https://iot.fastbee.cn/';

const CONFIG = {
	// 开发环境配置
	development: {
		OFFICIAL_WEB_URL: 'https://fastbee.cn/',
		BASE_URL: WEBVIEW_URL + 'prod-api/',
		MQTT_SERVER: PROTOCOL_DEV + 'iot.fastbee.cn/mqtt',
		WEBVIEW_URL,
		QQ_MAP_KEY,
		XIN_ZHI_KEY,
	},
	// 生产环境配置
	production: {
		OFFICIAL_WEB_URL: 'https://fastbee.cn/',
		BASE_URL: WEBVIEW_URL + 'prod-api/',
		MQTT_SERVER: PROTOCOL_PROD + 'iot.fastbee.cn/mqtt',
		WEBVIEW_URL,
		QQ_MAP_KEY,
		XIN_ZHI_KEY,
	}
}
export default CONFIG[process.env.NODE_ENV];